<template lang="">
    <div>
            <van-pagination v-model='page' :total-items='total' :items-per-page='page_size' @change='change'></van-pagination>
    </div>
</template>
<script>
export default {
    props:['total','page_size'],
    data(){
        return{
            page:1
        }
    },
    methods: {
        //value当前页
        change(value){
            this.$emit('cpage',value)
        }
    },
}
</script>
<style lang="">
    
</style>